import csv
import chardet
filetouse='队名单.csv'
with open(filetouse,'rb')as f:
    data=f.read()
    result=chardet.detect(data)
    encoding=result['encoding']
    print(encoding)

with open(filetouse,'r',encoding=encoding)as f:
    r=csv.reader(f)
    file_header=next(f)
    print(file_header)